<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	window.addEventListener("unhandledrejection", event => {
		console.log('unhandledrejection', event);
	});
	window.addEventListener("error", event => {
		console.log('onerror', event);
	});
	const a = document.getElementById('#view');
	a.innerHTML = '<span>Hi HongMeng OS</span>';
	
	console.log(window.navigator);
	
	// setTimeout(() => { throw new Error('errObj'); }, 100);
	// setTimeout(() => { abc++;				 }, 100);
	// setTimeout(() => {
	// 	try{
	// 		bbb++;
	// 	}catch(error){
	// 		throw error;
	// 	}
	// }, 100);
	// new Promise((_, reject) => {
	// 	reject('rejectObj');
	// });
	// (async () => {
	// 	const fetch = () => {
	// 		throw new Error('asyncErrorObj');
	// 	}
	// 	await fetch();
	// })();
</script>
